package com.kevin.learn.d.代理对象.a.静态代理;

public class TeacherProxy implements ITeacherDao{
    
    private ITeacherDao target;

    public TeacherProxy(ITeacherDao target) {
        this.target = target;
    }

    @Override
    public void teach() {
        System.out.println("静态准备。。。");
        target.teach();
        System.out.println("静态结束。。。");
    }
}
